<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">

    <style>
        * {
            margin: 0;
            padding: 0;
            list-style: none; /*去掉前面的点*/
        }

        #box {
            width: 1200px;
            height: 679px;
            margin: auto;
            border: 2px solid pink;
            overflow: hidden; /*溢出：隐藏*/

        }
        #box ul li {
            width: 240px;
            height: 679px;
            float: left;
        }
    </style>
    <script src="../jquery.js"></script>
    <script src="accordion.js"></script>
    <script>

        $(function () {
            var colors = [ "yellow", "blue", "pink","green", "red"];
            $("#box").accordion(colors);
        })
    </script>


</head>
<body>
<div id="box">
    <ul>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
    </ul>
</div>



</body>
</html>